﻿<local:BaseDataVisualizer
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.EditLocationEdge" 
    Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" 	
    xmlns:BrainTechLLC="clr-namespace:BrainTechLLC;assembly=BrainTechLLC.Silverlight.Core" 
    xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication" 
    xmlns:System="clr-namespace:System;assembly=mscorlib">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" x:Name="gridData" Width="Auto" Background="#FFFFFFFF">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Assoc ID:" Style="{StaticResource TextBlockContentStyle}"/>          
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=AssociatedID}" Style="{StaticResource TextBoxNoScroller}" />
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Direction:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=Direction}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="To Loc:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=ToLocation}" Style="{StaticResource TextBoxNoScroller}" />
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Move Cost:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=BaseMoveCost}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="To Loc ID:" Style="{StaticResource TextBlockContentStyle}"/>
            <loc:EditAssociatedID Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" AssociatedID="{Binding Mode=OneWay, Path=ToGameLocationID}" />
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Edge Data?" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=HasEdgeData}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <local:DataVisualizer x:Name="editEdgeData" DataToVisualize="{Binding Mode=OneWay, Path=EdgeData}" local:WindowContainer.IsOpen="True" 
                                      Template="{StaticResource WinContainer}" VisualizerName="EditLocationEdgeData" IsCollection="False"
                                      Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" 
                                      ShowSave="False"                                       
                                      HeaderBackground="#FF58003B" WindowBorder="#FF15006E" WindowlessMode="True" DescriptionTextString="Edge Data" />
        </Grid>
        <!--<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <local:DataVisualizer x:Name="editGameThing" DataToVisualize="{Binding Mode=OneWay}" local:WindowContainer.IsOpen="True" 
                                      Template="{StaticResource WinContainer}" VisualizerName="EditGameThing" IsCollection="False"
                                      Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" 
                                      ShowSave="False"                                       
                                      HeaderBackground="#FF58003B" WindowBorder="#FF15006E" WindowlessMode="True" DescriptionTextString="Basic Info" />
        </Grid>-->
    </StackPanel>
</local:BaseDataVisualizer>